Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ignoreLocallyUsed Flag #282

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

DLeyland
Copy link
Contributor

This implements the suggestion from #30

--ignoreLocallyUsed means that exports which are used in the same file they are defined in won't be reported as unused.

This is implemented by counting a local use of a given variable as an import. Note that this results in needing to traverse significantly more of the AST, so there may be a performance impact for larger codebases.

--ignoreLocallyUsed allows exports which aren't imported anywhere to not
be reported as unused so long as they are used in the same file they are
defined in.

This is implemented by counting a local use of a given variable as an
import. Note that this results in needing to traverse significantly
more of the AST, so there may be a significant performance impact for
larger codebases.
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@DLeyland DLeyland temporarily deployed to prod June 24, 2023 15:09 — with GitHub Actions Inactive
@mrseanryan mrseanryan merged commit 5228d59 into pzavolinsky:master Jun 24, 2023
@mrseanryan
Copy link
Collaborator

Thank you @DLeyland for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants